package com.wyd.jwpkglxt_ssm.util;

import lombok.AllArgsConstructor;
import lombok.Getter;

/*
 * @description: <br>
 * 枚举中的构造器，默认就是private，结果信息工具类
 * @Param:
 * @Return:
 * @Author: 文永达
 * @Date: 2021/7/14 17:32
 */
@Getter
@AllArgsConstructor
public enum ResultCode {
    //public static final ResultCode SUCCESS = new ResultCode(200,"SUCCESS");
    SUCCESS(20000,"成功"),
    UNKNOWN_ERROR(201,"未知错误"),
    USERNAME_OR_PASSWORD_ERROR(202,"用户名错误或密码错误"),
    USERNAME_OR_PASSWORD_EMPTY(203,"用户名不存在或密码不存在"),
    USERNAME_STATUS_OFF(204,"用户被禁用"),
    ORIGIN_PASSWORD_ERROR(205,"原密码错误"),
    PAGENUM_ERROR(301,"当前分页页数格式错误"),
    PAGESIZE_ERROR(302,"当前分页条数格式错误"),
    PAGENUM_EMPTY(303,"当前分页页数为空"),
    PAGESIZE_EMPTY(304,"当前分页条数为空"),
    VERIFYCODE_ERROR(305,"验证码错误")
;
    private Integer code;
    private String msg;


    //ResultCode(Integer code,String msg){
    //    this.code = code;
    //    this.msg = msg;
    //}
}
